/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

import { Request, Response } from 'express';
import { responseSuccess } from '../utils';
import Mock from 'mockjs';

export default {
  'POST /CustomerServiceV2/ivrBlackList': (req: Request, res: Response) => {
    const data = Mock.mock({
      'list|1-10': [
        {
          bid: '@id()',
          courier_id: '@id()',
          operator: '@cname(2, 3)',
          'brand|1': ['dak', 'kdy'],
          courier_tel: '12345678901',
          note: '@cword(2, 3)',
          time: '@now()',
        },
      ],
    });
    const result = {
      code: 0,
      msg: 'success',
      data: {
        recordTotal: data.list.length,
        list: data.list,
      },
    };
    return res.json(result);
  },
  'POST /Shield/removeSMSBlack': (req: Request, res: Response) => responseSuccess(req, res),
};
